<?php

class Bcms_Resource_Model 
{
	protected $_options;
	
	protected $_resource;
	
	protected $_resourceData;

	public function __construct( $name )
	{
		$this->_resource = new Zend_Db_Table( $name );
		
		$metadata = $this->_resource->getAdapter()->describeTable( $name );
		$this->_resourceData['columns'] = $metadata;
	}

	/**
	 * Obtiene el modelo del recurso
	 * 
	 * @return Zend_Db_Table
	 */
	public function getResourceModel()
	{
		return $this->_resource;
	}
	
	public function getFields()
	{
		return $this->_resourceData['columns'];
	}
}